package com.acme.task2;

public class GCTest {
	byte array[] = new byte[1024];

	public static void main(String[] args) {
		int numberOfIterations = 100000000; // java.lang.OutOfMemoryError
		Foo foo[];
		foo = new Foo[numberOfIterations];
		for (int i = 0; i < numberOfIterations; i++) {
			foo[i] = new Foo(i);
		}
		System.out.println("End of file");
	}
}
